<div class="layui-card">
    <div class="layui-card-body">
        <form class="layui-form" action="" method="post" id="cp-form">
            <div class="layui-tab layui-tab-brief">
                <ul class="layui-tab-title">
                    <li class="layui-this">基础设置</li>
                    <li>用户注册设置</li>
                </ul>
                <div class="layui-tab-content">
                    <div class="layui-tab-item layui-show">

                        <div class="layui-form-item">
                            <label class="layui-form-label">系统名称</label>
                            <div class="layui-input-block">
                                <input type="text" name="system[system_name]" value="{$setting.system_name|default=''}"  placeholder="系统名称" autocomplete="off" class="layui-input">
                            </div>
                        </div>

                        <div class="layui-form-item">
                            <label class="layui-form-label">系统作者</label>
                            <div class="layui-input-block">
                                <input type="text" name="system[system_author]" value="{$setting.system_author|default=''}"  placeholder="系统作者" autocomplete="off" class="layui-input">
                            </div>
                        </div>

                        <div class="layui-form-item">
                            <label class="layui-form-label">联系电话</label>
                            <div class="layui-input-block">
                                <input type="text" name="system[telphone]" value="{$setting.telphone|default=''}"  placeholder="联系电话" autocomplete="off" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">联系QQ</label>
                            <div class="layui-input-block">
                                <input type="text" name="system[qq]" value="{$setting.qq|default=''}"  placeholder="联系QQ" autocomplete="off" class="layui-input">
                                <button type="button" class="layui-btn layui-btn-xs" id="qq">
                                    <i class="layui-icon">&#xe67c;</i>
                                    选择二维图片上传
                                </button>
                                <table class="layui-table qq-table" id="qq-table">
                                    {if isset($setting.qqCode)}
                                    <tr>
                                        <td>
                                            <input type="text" class="layui-input" name="system[qqCode]" value="{$setting.qqCode|default=''}">
                                        </td>
                                        <td>
                                            <img src="{:_get_image_preview_url($setting.qqCode)}" alt="" width="150" >
                                        </td>
                                        <td>
                                            <a href="javascript:;" class="layui-btn layui-btn-danger layui-btn-xs del-photos-btn">删除</a>
                                        </td>
                                    </tr>
                                    {/if}
                                </table>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">联系微信</label>
                            <div class="layui-input-block">
                                <input type="text" name="system[wechat]" value="{$setting.wechat|default=''}"  placeholder="联系微信" autocomplete="off" class="layui-input">
                                <button type="button" class="layui-btn layui-btn-xs" id="wechat">
                                    <i class="layui-icon">&#xe67c;</i>
                                    选择二维图片上传
                                </button>
                                <table class="layui-table wechat-table" id="wechat-table">
                                    {if isset($setting.wechatCode)}
                                    <tr>
                                        <td>
                                            <input type="text" class="layui-input" name="system[wechatCode]" value="{$setting.wechatCode|default=''}">
                                        </td>
                                        <td>
                                            <img src="{:_get_image_preview_url($setting.wechatCode)}" alt="" width="150" >
                                        </td>
                                        <td>
                                            <a href="javascript:;" class="layui-btn layui-btn-danger layui-btn-xs del-photos-btn">删除</a>
                                        </td>
                                    </tr>
                                    {/if}
                                </table>
                            </div>
                        </div>

                    </div>
                    <div class="layui-tab-item ">
                        <div class="layui-form-item">
                            <label class="layui-form-label">注册验证</label>
                            <div class="layui-input-block">
                                <select class="form-control" name="system[open_registration]">
                                    <option value="1" {eq name="$setting.open_registration" value="1"} selected{/eq}>是</option>
                                    <option value="0" {eq name="$setting.open_registration" value="0"} selected{/eq}>否</option>
                                </select>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <div class="layui-text">带 * 号的为必填项</div>
                    <button class="layui-btn" lay-submit lay-filter="formDemo">保存</button>
                </div>
            </div>
        </form>
    </div>
</div>
